<?php if(!defined('IN_UCHOME')) exit('Access Denied');?><?php subtplcheck('template/blue/space_product_list|template/blue/header|template/blue/footer', '1304265218', 'template/blue/space_product_list');?><?php if($_SGLOBAL['inajax']) { ?>
<div style="text-align:right;">
<a onclick="hideMenu();" href="javascript:;" style="margin-right:5px;">关闭</a>
</div>
<img src="<?=$_GET['filepath']?>"/>	
<?php } else { ?>
<?php $_TPL['titles'] = array('产品列表'); ?>
<?php $friendsname = array(1 => '仅好友可见',2 => '指定好友可见',3 => '仅自己可见',4 => '凭密码可见'); ?>
<?php if(empty($_SGLOBAL['inajax'])) { ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title><?php if($_TPL['titles']) { ?><?php if(is_array($_TPL['titles'])) { foreach($_TPL['titles'] as $value) { ?><?php if($value) { ?><?=$value?> - <?php } ?><?php } } ?><?php } ?><?php if($_SN[$space['uid']]) { ?><?=$_SN[$space['uid']]?> - <?php } ?><?=$_SCONFIG['sitename']?> - Powered by 916178.com</title>
<script language="javascript" type="text/javascript" src="source/script_cookie.js"></script>
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
<script language="javascript" type="text/javascript" src="source/script_menu.js"></script>
<script language="javascript" type="text/javascript" src="source/script_ajax.js"></script>
<script language="javascript" type="text/javascript" src="source/script_face.js"></script>
<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>
<?php if($_TPL['js']) { ?>
<?php if(is_array($_TPL['js'])) { foreach($_TPL['js'] as $value) { ?>
<script language="javascript" type="text/javascript" src="<?=$value?>"></script>
<?php } } ?>
<?php } ?>
<style type="text/css">
@import url(template/default/style.css);
<?php if($_TPL['css']) { ?>
@import url(template/default/<?=$_TPL['css']?>.css);
<?php } ?>
<?php if(!empty($_SGLOBAL['space_theme'])) { ?>
@import url(theme/<?=$_SGLOBAL['space_theme']?>/style.css);
<?php } elseif($_SCONFIG['template'] != 'default') { ?>
@import url(template/<?=$_SCONFIG['template']?>/style.css);
<?php } ?>
<?php if(!empty($_SGLOBAL['space_css'])) { ?>
<?=$_SGLOBAL['space_css']?>
<?php } ?>
</style>
<link rel="shortcut icon" href="image/favicon.ico" />
<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=<?=$space['uid']?>" />
<style type="text/css">
body { background: #FFF url(./image/bg1.jpg) repeat left top; }
#wrap{
background:#fff;
padding-top:10px;
width:980px;
}
#main{
width:970px;
margin-left:5px;
margin-right:5px;
}
#header{
margin-bottom:10px;
}
.headerwarp{
width:940px;
padding-top:2px;
}
#footer{
 background: #FFF url(./image/footer_bg.jpg) repeat-x left top; 
}
.headerwarp .logo {
display:inline;    margin: 0 10px 0 0;

}
#header .logo a{
background:none;
}
#header .logo a img {
margin:0;
}
</style>
</head>
<body>

<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div id="header">
<?php if($_SGLOBAL['ad']['header']) { ?><div id="ad_header"><?php adshow('header'); ?></div><?php } ?>
<div class="headerwarp">
<h1 class="logo"><a href="<?=$_SCONFIG['siteallurl']?>"><img src="template/<?=$_SCONFIG['template']?>/image/logo.gif" alt="<?=$_SCONFIG['sitename']?>" height="38" width="85"/></a></h1>
<ul class="menu">
<?php if($_SGLOBAL['supe_uid']) { ?>
<li><a href="javascript:;">欢迎您：<?=$_SN[$_SGLOBAL['supe_uid']]?></a></li>

<li><a href="<?=$_SCONFIG['siteallurl']?>">首页</a></li>	
<li><a href="space.php?do=home">管理中心</a></li>	

<?php if(ckfounder($_SGLOBAL['supe_uid'])) { ?>
<li><a href="cp.php?ac=advance">高级管理</a></li>				
<?php } ?>

<li><a href="cp.php?ac=common&op=logout&uhash=<?=$_SGLOBAL['uhash']?>">退出</a></li>	
<?php } else { ?>
<li><a href="javascript:;">欢迎您：</a></li>	
<li><a href="do.php?ac=<?=$_SCONFIG['login_action']?>">登录</a></li>	
<li><a href="do.php?ac=<?=$_SCONFIG['register_action']?>">注册</a></li>	
<?php } ?>
</ul>


</div>
</div>

<div id="wrap">

<?php if(empty($_TPL['nosidebar'])) { ?>
<div id="main">
<div id="app_sidebar">
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul class="app_list" id="default_userapp">
<li><img src="image/app/doing.gif"><a href="space.php?do=blog">最新动态</a><em><a href="cp.php?ac=blog" class="gray">添加</a></em></li>
<li><img src="image/app/doing.gif"><a href="space.php?do=blog&type=cpzs">产品知识</a><em><a href="cp.php?ac=blog&type=cpzs" class="gray">添加</a></em></li>
<li><img src="image/app/doing.gif"><a href="space.php?do=blog&type=ppfw">品牌服务</a><em><a href="cp.php?ac=blog&type=ppfw" class="gray">添加</a></em></li>
<li><img src="image/app/doing.gif"><a href="space.php?do=product">产品展示</a><em><a href="cp.php?ac=product" class="gray">添加</a></em></li>

</ul>

<ul class="app_list topline" id="my_defaultapp">
<?php if($_SCONFIG['my_status']) { ?>
<?php if(is_array($_SGLOBAL['userapp'])) { foreach($_SGLOBAL['userapp'] as $value) { ?>
<li><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>"><?=$value['appname']?></a></li>
<?php } } ?>
<?php } ?>
</ul>

<?php if($_SCONFIG['my_status']) { ?>
<ul class="app_list topline" id="my_userapp">
<?php if(is_array($_SGLOBAL['my_menu'])) { foreach($_SGLOBAL['my_menu'] as $value) { ?>
<li id="userapp_li_<?=$value['appid']?>"><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>" title="<?=$value['appname']?>"><?=$value['appname']?></a></li>
<?php } } ?>
</ul>
<?php } ?>

<?php if($_SGLOBAL['my_menu_more']) { ?>
<p class="app_more"><a href="javascript:;" id="a_app_more" onclick="userapp_open();" class="off">展开</a></p>
<?php } ?>

<?php if($_SCONFIG['my_status']) { ?>
<div class="app_m">
<ul>
<li><img src="image/app_add.gif"><a href="cp.php?ac=userapp&my_suffix=%2Fapp%2Flist" class="addApp">添加应用</a></li>
<li><img src="image/app_set.gif"><a href="cp.php?ac=userapp&op=menu" class="myApp">管理应用</a></li>
</ul>
</div>
<?php } ?>

<?php } else { ?>
<div class="bar_text">
<form id="loginform" name="loginform" action="do.php?ac=<?=$_SCONFIG['login_action']?>&ref" method="post">
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
<p class="title">登录站点</p>
<p>用户名</p>
<p><input type="text" name="username" id="username" class="t_input" size="15" value="" /></p>
<p>密码</p>
<p><input type="password" name="password" id="password" class="t_input" size="15" value="" /></p>
<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" checked /><label for="cookietime">记住我</label></p>
<p>
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit" />
<input type="button" name="regbutton" value="注册" class="button" onclick="urlto('do.php?ac=<?=$_SCONFIG['register_action']?>');">
</p>
</form>
</div>
<?php } ?>
</div>

<div id="mainarea">

<?php if($_SGLOBAL['ad']['contenttop']) { ?><div id="ad_contenttop"><?php adshow('contenttop'); ?></div><?php } ?>
<?php } ?>

<?php } ?>


<script type="text/javascript" src="highslide/highslide-with-gallery.js"></script>
<link rel="stylesheet" type="text/css" href="highslide/highslide.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="highslide/highslide-ie6.css" />
<![endif]-->


<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
hs.lang = {
cssDirection: 'ltr',
loadingText : 'Loading...',
loadingTitle : '点击关闭',
focusTitle : 'Click to bring to front',
fullExpandTitle : '点击查看实际大小',
creditsText : '',
creditsTitle : '',
previousText : '上一张',
nextText : '下一张', 
moveText : '移动',
closeText : '关闭', 
closeTitle : 'Ecs关闭', 
resizeTitle : '缩放',
playText : '自动播放',
playTitle : '空格播放',
pauseText : '暂停',
pauseTitle : '空格键暂停',
previousTitle : '上一张(<-)',
nextTitle : '下一张(->)',
moveTitle : '移动',
fullExpandText : '1:1',
number: ' %1 / %2',
restoreTitle : '点击关闭图片，点击图片并拖动，使用方向键控制图片播放'
};

hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
hs.wrapperClassName = 'white';
hs.captionEval = 'this.a.title';
hs.numberPosition = 'caption';
hs.useBox = true;
hs.width = 800;
hs.height = 500;
//hs.dimmingOpacity = 0.8;

// Add the slideshow providing the controlbar and the thumbstrip
hs.addSlideshow({
//slideshowGroup: 'group1',
interval: 5000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
position: 'bottom center',
opacity: 0.75,
hideOnMouseOut: true
},
thumbstrip: {
position: 'below',
mode: 'horizontal',
zIndex:999,
relativeTo: 'expander'
}
});

</script>
<style>
.popupmenu_centerbox{
 max-width:1024px;
}
   .highslide-thumbstrip-horizontal table{
   		margin:0 auto;
   }
</style>
<div class="tabs_header">
<ul class="tabs">
<li class="active"><a href="space.php?do=product"><span>产品列表</span></a></li>
<li class="null"><a href="cp.php?ac=product">添加产品</a></li>
</ul>	
</div>	

<div id="content" style="width:640px;">


<?php if($searchkey) { ?>
<div class="h_status">以下是搜索 <span style="color:red;font-weight:bold;"><?=$searchkey?></span> 结果列表</div>
<?php } ?>

<?php if($count) { ?>
<div class="entry_list">

<table width="100%" cellspacing="0" cellpadding="3" class="infotable">
<?php if(is_array($list)) { foreach($list as $key => $value) { ?>
<tr>
<td width="15" valign="top"><?php echo $perpage*($page-1)+$key+1; ?></td>
<td width="150" valign="top">
<a href="<?=$value['filepath']?>" id="filepaht_<?=$value['picid']?>" title="<?=$value['name']?> <?=$value['title']?>" onclick="return hs.expand(this)"><img src="<?=$value['thumbpath']?>"/>	</a>				
</td>
<td valign="top">					
<p>产品名称：<?=$value['name']?></p>
<p>产品说明：<?=$value['title']?></p>
<p>产品分类: <a href="space.php?do=product&cat=<?=$value['cat']?>"><?=$category[$value['cat']]['name']?></a><?php if($value['subcat']) { ?>&nbsp;-->&nbsp;<a href="space.php?do=product&cat=<?=$value['cat']?>&subcat=<?=$value['subcat']?>"><?=$category[$value['cat']]['subcat'][$value['subcat']]['name']?></a><?php } ?></p>
</td>
<td  width="200" valign="top">
<a href="javascript:;"><?=$_SN[$value['uid']]?></a> <span class="gray"><?php echo sgmdate('Y-m-d H:i',$value[dateline],1); ?></span>
<br/>
<?php if($_SGLOBAL['supe_uid'] == $value['uid'] || checkperm('manageblog')) { ?>
<a href="cp.php?ac=product&picid=<?=$value['picid']?>">编辑</a>
<span class="pipe">|</span>
<a href="cp.php?ac=product&picid=<?=$value['picid']?>&op=delete" id="blog_delete_<?=$value['picid']?>" onclick="ajaxmenu(event, this.id)">删除</a>
<span class="pipe">|</span>
<?php } ?>
</td>
</tr>			
<?php } } ?>
</table>		
</div>

<div class="page"><?=$multi?></div>

<?php } else { ?>
<div class="c_form">还没有相关的产品。</div>
<?php } ?>

</div>

<div id="sidebar" style="width:150px;">

<?php if($category) { ?>
<div class="cat">
<h3>产品分类</h3>
<ul class="post_list line_list">
<li  <?php if(empty($subcat)&&empty($cat)) { ?>class="current"<?php } ?>><a href="space.php?do=product">全部产品</a></li>
<?php if(is_array($category)) { foreach($category as $k => $v) { ?>
<li <?php if($cat==$k&&empty($subcat)) { ?>class="current"<?php } ?>><a href="space.php?do=product&cat=<?=$k?>">------<?=$v['name']?></a></li>
<?php if(is_array($v['subcat'])) { foreach($v['subcat'] as $k1 => $v1) { ?>
<li <?php if($cat==$k&&$subcat==$k1) { ?>class="current"<?php } ?>>			
<a href="space.php?do=product&cat=<?=$k?>&subcat=<?=$k1?>">---------<?=$v1['name']?></a>
</li>

<?php } } ?>
<?php } } ?>
</ul>
</div>
<?php } ?>



</div>

<script>
function fuidgoto(fuid) {
window.location.href = "space.php?do=blog&view=we&fuid="+fuid;
}
</script>

<?php if(empty($_SGLOBAL['inajax'])) { ?>
<?php if(empty($_TPL['nosidebar'])) { ?>
<?php if($_SGLOBAL['ad']['contentbottom']) { ?><br style="line-height:0;clear:both;"/><div id="ad_contentbottom"><?php adshow('contentbottom'); ?></div><?php } ?>
</div>

<!--/mainarea-->
<div id="bottom"></div>
</div>
<!--/main-->
<?php } ?>

<div id="footer">
<?php if($_TPL['templates']) { ?>
<div class="chostlp" title="切换风格"  style="display:none;"><img id="chostlp" src="<?=$_TPL['default_template']['icon']?>" onmouseover="showMenu(this.id)" alt="<?=$_TPL['default_template']['name']?>" /></div>
<ul id="chostlp_menu" class="chostlp_drop" style="display: none">
<?php if(is_array($_TPL['templates'])) { foreach($_TPL['templates'] as $value) { ?>
<li><a href="cp.php?ac=common&op=changetpl&name=<?=$value['name']?>" title="<?=$value['name']?>"><img src="<?=$value['icon']?>" alt="<?=$value['name']?>" /></a></li>
<?php } } ?>
</ul>
<?php } ?>

<p class="r_option">
<a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP"><img src="image/top.gif" alt="" style="padding: 5px 6px 6px;" /></a>
</p>

<?php if($_SGLOBAL['ad']['footer']) { ?>
<p style="padding:5px 0 10px 0;"><?php adshow('footer'); ?></p>
<?php } ?>

<?php if($_SCONFIG['close']) { ?>
<p style="color:blue;font-weight:bold;">
提醒：当前站点处于关闭状态
</p>
<?php } ?>
<p>
&nbsp;
&nbsp;
&nbsp;
</p>
<p>
&nbsp;
&nbsp;
&nbsp;
</p>
<p>
<?=$_SCONFIG['sitename']?> - 
<a href="mailto:<?=$_SCONFIG['adminemail']?>">联系我们</a>
<?php if($_SCONFIG['miibeian']) { ?> - <a  href="http://www.miibeian.gov.cn" target="_blank"><?=$_SCONFIG['miibeian']?></a><?php } ?>
</p>
<p>
&nbsp;
&nbsp;
&nbsp;
</p>
<p style="display:none;">
Powered by <a  href="http://u.discuz.net" target="_blank"><strong>UCenter Home</strong></a> <span title="<?php echo X_RELEASE; ?>"><?php echo X_VER; ?></span>
<?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>
&copy; 2001-2010 <a  href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>
</p>
<?php if($_SCONFIG['debuginfo']) { ?>
<p><?php echo debuginfo(); ?></p>
<?php } ?>
</div>
</div>
<!--/wrap-->

<?php if($_SGLOBAL['appmenu']) { ?>
<ul id="ucappmenu_menu" class="dropmenu_drop" style="display:none;">
<li><a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a></li>
<?php if(is_array($_SGLOBAL['appmenus'])) { foreach($_SGLOBAL['appmenus'] as $value) { ?>
<li><a href="<?=$value['url']?>" title="<?=$value['name']?>" target="_blank"><?=$value['name']?></a></li>
<?php } } ?>
</ul>
<?php } ?>

<?php if($_SGLOBAL['supe_uid']) { ?>
<ul id="membernotemenu_menu" class="dropmenu_drop" style="display:none;">
<?php $member = $_SGLOBAL['member']; ?>
<?php if($member['notenum']) { ?><li><img src="image/icon/notice.gif" width="16" alt="" /> <a href="space.php?do=notice"><strong><?=$member['notenum']?></strong> 个新通知</a></li><?php } ?>
<?php if($member['pokenum']) { ?><li><img src="image/icon/poke.gif" alt="" /> <a href="cp.php?ac=poke"><strong><?=$member['pokenum']?></strong> 个新招呼</a></li><?php } ?>
<?php if($member['addfriendnum']) { ?><li><img src="image/icon/friend.gif" alt="" /> <a href="cp.php?ac=friend&op=request"><strong><?=$member['addfriendnum']?></strong> 个好友请求</a></li><?php } ?>
<?php if($member['mtaginvitenum']) { ?><li><img src="image/icon/mtag.gif" alt="" /> <a href="cp.php?ac=mtag&op=mtaginvite"><strong><?=$member['mtaginvitenum']?></strong> 个群组邀请</a></li><?php } ?>
<?php if($member['eventinvitenum']) { ?><li><img src="image/icon/event.gif" alt="" /> <a href="cp.php?ac=event&op=eventinvite"><strong><?=$member['eventinvitenum']?></strong> 个活动邀请</a></li><?php } ?>
<?php if($member['myinvitenum']) { ?><li><img src="image/icon/userapp.gif" alt="" /> <a href="space.php?do=notice&view=userapp"><strong><?=$member['myinvitenum']?></strong> 个应用消息</a></li><?php } ?>
</ul>
<?php } ?>

<?php if($_SGLOBAL['supe_uid']) { ?>
<?php if(!isset($_SCOOKIE['checkpm'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=pm&op=checknewpm&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php if(!isset($_SCOOKIE['synfriend'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=friend&op=syn&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php } ?>
<?php if(!isset($_SCOOKIE['sendmail'])) { ?>
<script language="javascript"  type="text/javascript" src="do.php?ac=sendmail&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>

<?php if($_SGLOBAL['ad']['couplet']) { ?>
<script language="javascript" type="text/javascript" src="source/script_couplet.js"></script>
<div id="uch_couplet" style="z-index: 10; position: absolute; display:none">
<div id="couplet_left" style="position: absolute; left: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<div id="couplet_rigth" style="position: absolute; right: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<script type="text/javascript">
lsfloatdiv('uch_couplet', 0, 0, '', 0).floatIt();
</script>
</div>
<?php } ?>
<?php if($_SCOOKIE['reward_log']) { ?>
<script type="text/javascript">
showreward();
</script>
<?php } ?>
</body>
</html>
<?php } ?>
<?php } ?><?php ob_out();?>